package com.example.fiction.ui.fragment.my;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import com.example.fiction.BR;
import com.example.fiction.R;
import com.example.fiction.databinding.FragmentMyBinding;

import me.goldze.mvvmhabit.base.BaseFragment;

/**
 * auth: 姚鸿杰
 * time: 2019/3/19 22:53
 **/
public class MyFragment extends BaseFragment<FragmentMyBinding, MyViewModel> {

    @Override
    public int initContentView(LayoutInflater layoutInflater, @Nullable ViewGroup viewGroup, @Nullable Bundle bundle) {
        return R.layout.fragment_my;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    public void setTitle(String title) {
        viewModel.setTitle(title);
    }

}
